package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 
 * @TableName t_zc
 */
@TableName(value ="t_zc")
@Data
public class TZc implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer zcId;

    /**
     * 
     */
    private BigDecimal cqb;

    /**
     * 
     */
    private BigDecimal yjPrice;

    /**
     * 
     */
    private BigDecimal fz;

    /**
     * 
     */
    private BigDecimal jb;

    /**
     * 
     */
    private BigDecimal zc;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TZc other = (TZc) that;
        return (this.getZcId() == null ? other.getZcId() == null : this.getZcId().equals(other.getZcId()))
            && (this.getCqb() == null ? other.getCqb() == null : this.getCqb().equals(other.getCqb()))
            && (this.getYjPrice() == null ? other.getYjPrice() == null : this.getYjPrice().equals(other.getYjPrice()))
            && (this.getFz() == null ? other.getFz() == null : this.getFz().equals(other.getFz()))
            && (this.getJb() == null ? other.getJb() == null : this.getJb().equals(other.getJb()))
            && (this.getZc() == null ? other.getZc() == null : this.getZc().equals(other.getZc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getZcId() == null) ? 0 : getZcId().hashCode());
        result = prime * result + ((getCqb() == null) ? 0 : getCqb().hashCode());
        result = prime * result + ((getYjPrice() == null) ? 0 : getYjPrice().hashCode());
        result = prime * result + ((getFz() == null) ? 0 : getFz().hashCode());
        result = prime * result + ((getJb() == null) ? 0 : getJb().hashCode());
        result = prime * result + ((getZc() == null) ? 0 : getZc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", zcId=").append(zcId);
        sb.append(", cqb=").append(cqb);
        sb.append(", yjPrice=").append(yjPrice);
        sb.append(", fz=").append(fz);
        sb.append(", jb=").append(jb);
        sb.append(", zc=").append(zc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}